package com.benio.ycfdisplayer.imageloader;

import android.view.View;
import android.widget.ImageView;

import com.benio.ycfdisplayer.displayer.ImageViewTarget;
import com.benio.ycfdisplayer.displayer.Target;
import com.benio.ycfdisplayer.displayer.TargetFactory;

/**
 * Created by benio on 2016/11/3.
 */
public class TargetBuilder implements TargetFactory {
    @Override
    public Target build(View view) {
        if (view instanceof ImageView) {
            return new ImageViewTarget((ImageView) view);
        }
        return null;
    }
}
